﻿using System.Configuration;
using System.Xml.Xsl;
using Altairis.Nemesis.Gallery.Configuration;
using System.Web;
using System;

namespace Altairis.Nemesis.Gallery {

    public class ConfiguredXsltArgumentList : XsltArgumentList {

        public ConfiguredXsltArgumentList()
            : base() {
            GallerySection config = GallerySection.GetCurrentOrDefault();

            // Add parameters read from configuration
            this.AddParam("ConfiguredTitle", string.Empty, config.Personalization.Title);
            this.AddParam("ConfiguredCopyrightText", string.Empty, config.Personalization.CopyrightText);
            this.AddParam("ConfiguredCopyrightLink", string.Empty, config.Personalization.CopyrightLink);
            this.AddParam("ConfiguredStyleSheet", string.Empty, config.Personalization.StyleSheet);
        }

    }

}
